import os
url = "https://mirrors.163.com/fedora/releases/36/Everything/source/tree/Packages/"
heads = [str(x) for x in range(0, 10)] + [chr(y) for y in range(97, 123)]
file = 'work.list'
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    for item in open(file, 'r'):
        mismatch = True
        item = item.replace('\n', '')
        for i in open(file2, 'r'):
            i = i.replace('\n', '')
            if i == item:
                os.system('echo "{} | {}" >> match.txt'.format(i, item))
                print('match {} vs {}'.format(i, item))
                mismatch = False
                break
        if mismatch:
            os.system('echo {} >> mismatch.txt'.format(package_name))
            print('mismatch {}'.format(package_name))
